BspCrv2Polyline

Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index Return to Main Contents
 

NAME

BspCrv2Polyline()  

SYNOPSIS

cagd_lib/bsp2poly.c:596

CagdPolylineStruct *BspCrv2Polyline(CagdCrvStruct *Crv,
                                    int SamplesPerCurve,
                                    BspKnotAlphaCoeffType *A,
                                    CagdBType OptiLin)
 

DESCRIPTION

Routine to approx. a single Bspline curve as a polyline with SamplesPerCurve samples. Polyline is always E3 CagdPolylineStruct type. Curve is refined equally spaced in parametric space, unless the curve is linear in which the control polygon is simply being copied. If A is specified, it is used to refine the curve. NULL is returned in case of an error, otherwise CagdPolylineStruct.  

PARAMETERS:

Crv: To approximate as a polyline.

SamplesPerCurve: Number of samples to approximate with.

A: Alpha matrix (Oslo algorithm) if precumputed.

OptiLin: If TRUE, optimize linear curves.  

FUNCTION RETURN VALUE

CagdPolylineStruct *: A polyline representing the piecewise linear approximation from, or NULL in case of an error.  

SEE ALSO

BzrCrv2Polyline, BspSrf2Polylines, IritCurve2Polylines, , SymbCrv2Polyline,

 

ORIGIN

(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS:
FUNCTION RETURN VALUE
SEE ALSO
ORIGIN

This document was created by man2html, using the manual pages.
Time: 07:27:15 GMT, October 17, 2022